﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Plat.WfProcess.Common;

namespace Plat.WfProcess.Business
{
    /// <summary>
    /// 活动上的资源类
    /// </summary>
    public class ActivityResource
    {
        #region 属性、构造函数
        /// <summary>
        /// 当前登录用户信息
        /// </summary>
        public WfLogonUser CurrentLogonUser
        {
            get;
            set;
        }

        /// <summary>
        /// 带有执行人员信息的下一步节点列表
        /// </summary>
        public IDictionary<string, PerformerList> NextActivityPerformers
        {
            get;
            set;
        }

        public ConditionKeyValuePair ConditionKeyValuePair
        {
            get;
            set;
        }

        public object[] UserParameters
        {
            get;
            set;
        }

        internal ActivityResource(WfLogonUser currentLogonUser,
            IDictionary<string, PerformerList> nextActivityPerformers,
            ConditionKeyValuePair conditionKeyValuePair)
        {
            CurrentLogonUser = currentLogonUser;
            NextActivityPerformers = nextActivityPerformers;
            ConditionKeyValuePair = conditionKeyValuePair;
        }

        
        
        #endregion
    }
}
